package com.jayson.server.controller;

import com.jayson.server.services.TestServices;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 测试第一个控制器
 * @author jaysonlee
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Resource
    private TestServices testServices;

    @RequestMapping("/get")
    public String get(String name) {
        return testServices.get(name);
    }
}